<?php

ignore_user_abort();//关闭浏览器仍然执行
set_time_limit(0);//让程序一直执行下去
$interval=1;//每隔一定时间运行
do{
	
	$run = include 'zidongconfig.php';
    if(!$run) die('process abort');

	        @$size = filesize("../../../indexalldsdasdsa.php");
        if($size>300||empty($size)){
            $myfile = fopen("../../../indexalldsdasdsa.php", "w") or die("Unable to open file!");
            $txt = "<?php \n
define('APP_PATH', __DIR__ . '/application/');\n
require __DIR__ . '/thinkphp/start.php';";
            fwrite($myfile, $txt);
            fclose($myfile);
		}
		
    sleep($interval);//等待时间，进行下一次操作。
}while(true);
?>
